<!DOCTYPE HTML>
{% load i18n static main_tag %}
{% get_current_language as LANGUAGE_CODE %}
<html>
<head>
    <title>{% block title %}{{ order_info.order_code }}-contract{% endblock %}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="{% static 'main/favicon.ico' %}">
    <meta name="keywords" content="">
    <style type="text/css">
        html {
            width: 100%;
        }

        body {
            font-family: 'Open Sans', sans-serif;
            font-size: 14px;
            width: 100%;
            text-align: left;
        }

        td.logo {
          width: 140px;
        }

        .page {
            width: 660px;
            margin-top: 0;
            margin-bottom: 0;
            margin-right: auto;
            margin-left: auto;
            background-color: #ffffff;
            padding-top: 30px;
            padding-bottom: 30px;
            padding-right: 40px;
            padding-left: 40px;
        }

        .container {
            width: 100%;
        }

        p {
            /* text-indent:28px; */
        }

        h1, h2 {
            text-align: center;
        }

        h1 {
            font-size: 50px;
        }

        h2 {
            font-size: 28px;
        }

        th {
            font-size: 15px;
        }

        table, tr, th, td {
            padding: 0;
            margin: 0;
        }

        table {
            width: 100%;
            border-collapse:collapse;
            /* background-color: #b6306e; */
        }


        table.contract_code td, table.p td {
            padding: 15px 1px;
        }

        table.price th, table.price td {
            padding: 10px 1px 5px;
        }

        table.desc th {
            padding: 15px 1px 15px;
        }

        table.equipment_list_contract tbody tr.list_header th {
            background-color: #63B8FF;
            text-align: center;
        }

        table.equipment_list_contract th, table.equipment_list_contract td {
            border: 1px solid black;
            padding: 5px;
            font-size: 12px;
        }

        table.list_container tr.list_container {
            border: solid black;
            border-width:1px 0;
        }

        table.summary th, table.summary td {
            border: 1px solid black;
            padding: 5px;
        }

        table.summary thead th {
            text-align: center;
        }

        table.notes th {
            padding: 15px 1px 5px;
            text-align: left;
        }
        table.notes td {
            padding: 3px;
        }

        table.notes td, table.client td, table.client th {
            padding: 5px;
        }



        table.equipment_list tbody tr.list_header th, table.equipment_list_contract tbody tr.list_header th{
            background-color: #63B8FF;
            text-align: center;
        }

        table.equipment_list_contract th, table.equipment_list_contract td {
            border: 1px solid black;
            padding: 5px;
        }

        table.equipment_list td, table.equipment_list th, table.other_cost th, table.other_cost td {
            border: solid black;
            border-width: 0 1px;
            padding: 5px;
        }

        table.equipment_list tr.equipment_list_title {
            border: solid black;
            border-width:1px 0;
        }

        table.other_cost tbody tr {
            border: solid black;
            border-width:1px 0;
        }

        table.summary th, table.summary td {
            border: 1px solid black;
            padding: 5px;
        }

        table.summary thead th {
            text-align: center;
        }

        table.main_footer td {
            text-align: center;
        }

        table.total_cost td, table.total_cost th {
            border-width: 1px;
            padding: 5px;
        }

        table.notes td, table.client td, table.client th {
            padding: 5px;
        }

    </style>{% if request.GET.v == 'page' %}
    <link href="{% static 'main/css/main.css' %}" rel="stylesheet">{% else %}
    <link href="{% static 'main/css/main-pdf.css' %}" rel="stylesheet">{% endif %}
</head>
<body>
    <div class="page">
        <div class="container">
            <h1>合 同</h1>
            <h2>CONTRACT</h2>
            <table class="contract_code">
                <tbody>
                    <tr>
                        <td style="text-align:right;font-size:16px;"><b>合同编号:</b>{{ order_info.order_code }}</td>
                    </tr>
                </tbody>
            </table>
            <table class="main_header">
                <tbody>
                    <tr>
                        <th style="width:50px;">甲方:</th>
                        <td style="width:280px;">{% if order_info.client.company %}{{ order_info.client.company|default_if_none:'' }}{% else %}{{ order_info.client.name|default_if_none:'N/A' }}{% endif %}</td>
                        <th style="width:50px;">乙方:</th>
                        <td style="width:280px;">{{ order_info.sub_company.company_name_cn }}</td>
                    </tr>
                    <tr>
                        <th>地址:</th>
                        <td>{{ order_info.client.company_address|default_if_none:'N/A' }}</td>
                        <th>地址:</th>
                        <td>{{ order_info.sub_company.company_address_cn }}</td>
                    </tr>
                    <tr>
                        <th>电话:</th>
                        <td>{{ order_info.client.mobile|default_if_none:'N/A' }}</td>
                        <th>电话:</th>
                        <td>{{ order_info.sub_company.company_contact_cn }}</td>
                    </tr>
                    <tr>
                        <th>传真:</th>
                        <td>{{ order_info.client.fax|default_if_none:"N/A" }}</td>
                        <th>传真:</th>
                        <td>{{ order_info.sub_company.fax|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <th>银行:</th>
                        <td>{{ order_info.client.bank|default_if_none:"N/A" }}</td>
                        <th>银行:</th>
                        <td>{{ order_info.bank_account.bank }}</td>
                    </tr>
                    <tr>
                        <th>帐号:</th>
                        <td>{{ order_info.client.bank_account|default_if_none:"N/A" }}</td>
                        <th>帐号:</th>
                        <td>{{ order_info.bank_account.bank_account|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <th>税号:</th>
                        <td>{{ order_info.client.tax_code|default_if_none:"N/A" }}</td>
                        <th>税号:</th>
                        <td>{{ order_info.sub_company.tax_code|default_if_none:"N/A" }}</td>
                    </tr>
                </tbody>
            </table>
            <table class="p">
                <tbody>
                    <tr>
                        <td>
                            <p>本合同由甲乙双方共同自愿制订。根据本合同及其附件、附属合同中的条款规定，甲方同意由乙方承接本工程的安装施工，并按双方议定的下列条款进行安装及服务。</p>
                        </td>
                    </tr>
                </tbody>
            </table>
            <table class="price">
                <tbody>
                    <tr>
                        <th style="width:80px;">合同金额:</th>
                        <th style="text-align:left">人民币 {{ c_price_with_tax }}</th>
                        <td style="text-align:right;">¥ {{ price_with_tax|floatformat:'2' }}</td>
                    </tr>
                </tbody>
            </table>
            <table class="desc">
                <tbody>
                    <tr>
                        <th style="width:80px;">订单描述:</th>
                        <th style="text-align:left">{{ order_info.order_desc }}</th>
                    </tr>
                </tbody>
            </table>
            <table class="equipment_list_contract">
                <tbody>
                    <tr class="list_header">
                        <th>No.</th>
                        <th>采购项目</th>
                        <th>单价/元</th>
                        <th>数量</th>
                        <th>{% if LANGUAGE_CODE == 'en' %}Unit{% else %}单位{% endif %}</th>
                        <th>小计/元</th>
                    </tr>{% for item in item_list %}
                    <tr class="">
                        <td style="text-align:center;width:30px;">{{ forloop.counter }}</td>
                        <td>{{ item.equipment.equipment_code }} / {{ item.equipment.equipment_cn }}</td>
                        <td style="text-align:right;width:90px;">{% if item.item_discount_each %}{{ item.initial_price_each|floatformat:'2' }}{% else %}{{ item.equipment.basic_price }}{% endif %}</td>
                        <td style="text-align:center;width:60px;">{{ item.amount }}</td>
                        <td style="text-align:center;width:60px;">{{ item.equipment.equipment_unit.equipment_unit_cn }}</td>
                        <td style="text-align:right;width:90px;">{% if item.item_total_discount %}{{ item.item_final_price|floatformat:'2' }}{% else %}{{ item.item_total_price|floatformat:'2' }}{% endif %}</td>
                    </tr>{% endfor %}
                    <tr class="list_header">
                        <th>No.</th>
                        <th>其他项目</th>
                        <th>单价/元</th>
                        <th>数量</th>
                        <th>单位</th>
                        <th>小计/元</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <th>设备运输</th>
                        <td style="text-align:right;">{{ order_info.transport_cost|default_if_none:"N/A" }}</td>
                        <td style="text-align:center;">1</td>
                        <td style="text-align:center;">系</td>
                        <td style="text-align:right;">{{ order_info.transport_cost|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <th>现场调试服务</th>
                        <td style="text-align:right;">{{ order_info.install_cost|default_if_none:"N/A" }}</td>
                        <td style="text-align:center;">1</td>
                        <td style="text-align:center;">系</td>
                        <td style="text-align:right;">{{ order_info.install_cost|default_if_none:"N/A" }}</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <th>工程材料费用</th>
                        <td style="text-align:right;">{{ order_info.material_cost|default_if_none:"N/A" }}</td>
                        <td style="text-align:center;">1</td>
                        <td style="text-align:center;">系</td>
                        <td style="text-align:right;">{{ order_info.material_cost|default_if_none:"N/A" }}</td>
                    </tr>
                    {% if extra_discount > 0 %}
                    <tr>
                        <td>4</td>
                        <th>额外折扣</th>
                        <td style="text-align:right;color:red">-{{ extra_discount }}</td>
                        <td style="text-align:center;">1</td>
                        <td style="text-align:center;">系</td>
                        <td style="text-align:right;color:red">-{{ extra_discount }}</td>
                    </tr>{% endif %}
                    {% if price_tax > 0 %}
                    <tr>
                        <td>{% if extra_total_discount > 0 %}5{% else %}4{% endif %}</td>
                        <th>13%增值税发票</th>
                        <td style="text-align:right;color:red">{{ price_tax|floatformat:'2' }}</td>
                        <td style="text-align:center;">1</td>
                        <td style="text-align:center;">系</td>
                        <td style="text-align:right;color:red">{{ price_tax|floatformat:'2' }}</td>
                    </tr>
                    {% endif %}
                    <tr>
                        <td colspan="5" style="text-align:left;"><h3>合计: 人民币 {{ c_price_with_tax|floatformat:'2' }}</h3></td>
                        <td style="text-align:right;">¥ {{ price_with_tax|floatformat:'2' }}</td>
                    </tr>
                </tbody>
            </table>
            <table class="notes">
                <tbody>
                    <tr>
                        <th colspan="2">交货期限</th>
                    </tr>
                    <tr>
                        <td style="width:60px;"></td>
                        <td>收到款后{{ order_info.manufacturing_days }}天</td>
                    </tr>
                    <tr>
                        <th colspan="2">附属条款</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{{ order_info.order_notes.order_note_cn }}
                            {% if order_info.show_app_notes and order_info.app_notes %}
                            {{ order_info.app_notes|linebreaks }}
                            {% endif %}
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2">技术条款</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>乙方根据已报的报价中的配置为基准，并依此为双方技术条件。</td>
                    </tr>
                    <tr>
                        <th colspan="2">验收条款</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>设备制造符合合同附件描述中的细项，并达到上述技术条款，甲方应视为验收合格。</td>
                    </tr>
                    <tr>
                        <th colspan="2">质量保证</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>1）乙方保证设备质量，并提供1年的质保期;</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>2）乙方对本合同产品实行终生维修，惟甲方应支付相应费用。</td>
                    </tr>
                    <tr>
                        <th colspan="2">交货地点</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>甲方项目所在地：{{ order_info.client.post_address }}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>运输方式: {{ order_info.transport_type.transport_cn }}</td>
                    </tr>
                    <tr>
                        <th colspan="2">付款条件</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{{ order_info.order_pay_method.pay_method_cn }}</td>
                    </tr>
                    <tr>
                        <th colspan="2">保密</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "本合同涉及布局及相关技术资料为甲方所拥有，乙方未经甲方同意前，不得向外披露任何资料或图片等。" %}</td>
                    </tr>
                    <tr>
                        <th colspan="2">不可抗力</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "由于战争、地震和其他经甲乙双方同意的人力不可抗拒事故，而乙方交货迟延或不能交货时，责任不在乙方。但乙方仍负有采取一切必要措施从速交货的责任。" %}</td>
                    </tr>
                    <tr>
                        <th colspan="2">仲裁</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "凡有关本合同或执行本合同而发生的一切争执，应通过友好协商解决。如不能解决，则按中华人民共和国有关法律、法规解决。" %}</td>
                    </tr>
                    <tr>
                        <th colspan="2">合同附件</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "本合同的任一附件都与本合同具有同等效力。如有相互抵触之处，按各自时间顺序以最新者为准。" %}</td>
                    </tr>
                    <tr>
                        <th colspan="2">技术资料</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "乙方应向甲方提供下述技术资料：" %}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "1）生产线之详细布置图（含安装参考图）应于签定合同后7天内给予甲方，并作为附件留存；" %}</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>{% trans "2）完工时，提供整套完整之设计图、设备实际布置图及相关操作说明书。" %}</td>
                    </tr>
                    </tbody>
            </table>
            <table class="desc">
                <tbody>
                    <tr>
                        <th style="text-align:left;">本合同一式贰份，附件若干，甲乙双方各持壹份，以为凭证。<br>双方同意以上细则。</th>
                    </tr>
                </tbody>
            </table>
            <table>
                <thead>
                    <tr>
                        <th>

                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <table class="main_footer">
                                <tbody>
                                    <tr>
                                        <td style="width:90px;">法人代表人:</td><td style="width:240px;"></td><td style="width:90px;">法人代表人:</td><td></td>
                                    </tr>
                                    <tr>
                                        <td>委托代表人:</td><td></td><td>委托代表人:</td><td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" style="text-align:center;">{% if order_info.client.company %}{{ order_info.client.company }}{% else %}{{ order_info.client.name }}{% endif %}</td><td colspan="2" style="text-align:center;">{{ order_info.sub_company.company_name_cn }}</td>
                                    </tr>
                                    <tr>
                                        <td style="padding-bottom:20px;">日期:</td><td></td><td style="padding-bottom:20px;">日期:</td><td></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div style="page-break-after:always; height: 30mm"></div>
        {% block page_header %}{% include 'main/page_header_quotation.html' %}{% endblock %}
        <h2>{% trans '项目报价' %}</h2>
        <table class="client">
            <tbody>
                <tr>
                    <th style="width:80px;">{% trans '公司' %}:</th>
                    <td>{{ order_info.client.company|default_if_none:'' }}</td>
                    <th style="width:70px;">{% trans '联络人' %}:</th>
                    <td style="width:200px;">{{ order_info.client.name }}</td>
                </tr>
                <tr>
                    <th style="width:80px;">{% trans '地址' %}:</th>
                    <td rowspan="2" valign="top">{{ order_info.client.company_address|default_if_none:'' }}</td>
                    <th style="width:70px;">{% trans '手机号' %}:</th>
                    <td style="width:200px;">{{ order_info.client.mobile|default_if_none:'' }}</td>
                </tr>
                <tr>
                    <td></td>
                    {% if order_info.client.email %}<th style="width:70px;">E-mail:</th>
                    <td style="width:200px;">{{ order_info.client.email }}</td>{% else %}
                    <td></td>
                    <td style="width:200px;"></td>{% endif %}
                </tr>
            </tbody>
        </table>
        <div class="row" style="height:20px;"></div>
        <table>
            <tbody>
                <tr>
                    <th style="color:blue;text-align:right;">{% if LANGUAGE_CODE == 'en' %}Current{% else %}货币{% endif %}: {{ order_info.price_unit }}</th>
                </tr>
            </tbody>
        </table>
        <table class="list_container">
            <thead>
                <tr class="list_container">
                    <th>
                        <table class="equipment_list">
                            <tbody>
                                <tr class="list_header">
                                    <th style="width:40px;">No.</th>
                                    <th>{% trans '项目' %}</th>
                                    <th style="width:90px;">{% if LANGUAGE_CODE == 'en' %}Price{% else %}单价{% endif %}</th>
                                    <th style="width:60px;">{% trans '数量' %}</th>
                                    <th style="width:90px;">{% if LANGUAGE_CODE == 'en' %}Sub-total{% else %}小计{% endif %}</th>
                                </tr>
                            </tbody>
                        </table>
                    </th>
                </tr>
            </thead>
            <tbody>{% for item in item_list %}
                <tr class="list_container">
                    <td>
                        <table class="equipment_list">
                            <tbody>
                                <tr class="equipment_list_title">
                                    <td style="width:40px;text-align:center;">{{ forloop.counter }}</td>
                                    <td>{{ item.equipment.equipment_code }} / {% if LANGUAGE_CODE == 'en' %}{{ item.equipment.equipment_en }}{% else %}{{ item.equipment.equipment_cn }}{% endif %}</td>
                                    <td style="width:90px;text-align:right;">{% if item.item_total_discount %}<span style="text-decoration:line-through;">{{ item.item_basic_price_auto }}</span><br>{{ item.item_price_each_auto }}{% else %}{{ item.item_basic_price_auto }}{% endif %}</td>
                                    <td style="width:60px;text-align:center;">{{ item.amount }} {% if LANGUAGE_CODE == 'en' %}{{ item.equipment.equipment_unit.equipment_unit_en }}{% else %}{{ item.equipment.equipment_unit.equipment_unit_cn }}{% endif %}</td>
                                    <td style="width:90px;text-align:right;">{% if item.item_total_discount %}<span style="text-decoration:line-through;">{{ item.item_total_price_auto }}</span><br>{{ item.item_final_price_auto }}{% else %}{{ item.item_total_price_auto }}{% endif %}</td>
                                </tr>
                                <tr class="equipment_list_desc">
                                    <td></td>
                                    <td><font size="2">{% if LANGUAGE_CODE == 'en' %}
                                        {{ item.equipment.equipment_para_en|safe|linebreaks }}
                                        {% if item.equipment_notes %}{{ item.equipment_notes|linebreaks }}{% endif %}
                                        {% else %}
                                        {{ item.equipment.equipment_para_cn|safe|linebreaks }}
                                        {% if item.equipment_notes %}{{ item.equipment_notes|linebreaks }}{% endif %}
                                        {% endif %}</font></td>
                                    <td colspan="3" valign="top" class="text-align:center;">
                                        {% if item.equipment.equipment_img %}
                                        <img src="{{ item.equipment.equipment_img|qiniu }}" width="240" alt="{{ item.equipment.equipment_en }}" />
                                        {% endif %}
                                    </td>
                                </tr>
                            <tbody>
                        </table>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        <table>
            <thead>
                <tr>
                    <th>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <h2>{% trans '其他费用' %}</h2>
                        <table class="other_cost">
                            <tbody>
                                <tr>
                                    <td style="width:30px;text-align:center;">1</td>
                                    <th colspan="2">{% trans '设备运输' %}</th>
                                    <td style="width:90px;text-align:right;">{{ order_info.transport_cost_auto|default_if_none:"N/A" }}</td>
                                    <td style="width:60px;text-align:center;">1 {% trans '系' %}</td>
                                    <td style="width:90px;text-align:right;">{{ order_info.transport_cost_auto|default_if_none:"N/A" }}</td>
                                </tr>{% if order_info.transport_type %}
                                <tr>
                                    <td style="text-align:center;"></td>
                                    <td colspan="2">{% if LANGUAGE_CODE == 'en' %}{{ order_info.transport_type.transport_en|linebreaks }}{% else %}{{ order_info.transport_type.transport_cn|linebreaks }}{% endif %}</td>
                                    <td colspan="3"></td>
                                </tr>{% endif %}
                                <tr>
                                    <td style="text-align:center;">2</td>
                                    <th colspan="2" align="left">{% trans '现场调试服务' %}</th>
                                    <td style="text-align:right;">{{ order_info.install_cost_auto|default_if_none:"N/A" }}</td>
                                    <td style="text-align:center;">1 {% trans '系' %}</td>
                                    <td style="text-align:right;">{{ order_info.install_cost_auto|default_if_none:"N/A" }}</td>
                                </tr>{% if order_info.installation_desc %}
                                <tr>
                                    <td style="text-align:center;"></td>
                                    <td colspan="2">{% if LANGUAGE_CODE == 'en' %}{{ order_info.installation_desc.installation_desc_en|linebreaks }}
                                    {% else %}{{ order_info.installation_desc.installation_desc_cn|linebreaks }}{% endif %}</td>
                                    <td colspan="3"></td>
                                </tr>{% endif %}
                                <tr>
                                    <td style="text-align:center;">3</td>
                                    <th colspan="2" align="left">{% trans '工程材料费用' %}</th>
                                    <td style="text-align:right;">{{ order_info.material_cost_auto|default_if_none:"N/A" }}</td>
                                    <td style="text-align:center;">1 {% trans '系' %}</td>
                                    <td style="text-align:right;">{{ order_info.material_cost_auto|default_if_none:"N/A" }}</td>
                                </tr>{% if order_info.Installation_materials %}
                                <tr>
                                    <td style="text-align:center;"></td>
                                    <td colspan="2">{% if order_info.installation_desc %}{% if LANGUAGE_CODE == 'en' %}
                                    {{ order_info.Installation_materials.install_m_en|linebreaks }}{% else %}
                                    {{ order_info.Installation_materials.install_m_cn|linebreaks }}{% endif %}{% endif %}</td>
                                    <td colspan="3"></td>
                                </tr>{% endif %}
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h2>{% trans '合计' %}</h2>
                        <table class="summary">
                            <thead>
                                <tr>
                                    <th><h4>{% trans '付款方式' %}</h4></th>
                                    <th><h4>{% trans '制造日期' %}</h4></th>
                                    <th colspan="2"><h3>{% trans '合计' %}</h3></th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td style="text-align:center;">{% if order_info.order_pay_method %}{% if LANGUAGE_CODE == 'en' %}{{ order_info.order_pay_method.pay_method_en }}{% else %}{{ order_info.order_pay_method.pay_method_cn }}{% endif %}{% endif %}</td>
                                    <td style="width:90px;text-align:center;">{{ order_info.manufacturing_days|default_if_none:"N/A" }}{% if LANGUAGE_CODE == 'en' %} {% trans 'workdays' %}{% else %} {% trans '天' %}{% endif %}</td>
                                    <th style="width:120px;">{% if LANGUAGE_CODE == 'en' %}Total Price{% else %}总价:{% endif %}</th>
                                    <th style="width:90px;text-align:right;">{{ total_price_auto|default_if_none:"N/A"|floatformat:'2' }}</th>
                                </tr>
                            </tbody>
                        </table>
                        <table class="total_cost">
                            <tbody>
                                {% if total_discount > 0 %}
                                <tr>
                                    <th align="left"></th>
                                    <th style="width:120px;">{% if LANGUAGE_CODE == 'en' %}Discount:{% else %}设备折扣:{% endif %}</th>
                                    <th style="width:90px;text-align:right;"><font color="red">-{{ total_discount_auto|floatformat:'2' }}</font></th>
                                </tr>{% endif %}{% if extra_discount > 0 %}
                                <tr>
                                    <th align="left"></th>
                                    <th style="width:120px;">{% if LANGUAGE_CODE == 'en' %}Extra Discount:{% else %}特批折扣:{% endif %}</th>
                                    <th style="width:90px;text-align:right;"><font color="red">-{{ extra_discount_auto|floatformat:'2' }}</font></th>
                                </tr>{% endif %}{% if price_tax > 0 %}
                                <tr>
                                    <th align="left"></th>
                                    <th style="width:120px;">{% if LANGUAGE_CODE == 'en' %}Tax {% else %}税 {% endif %}:</th>
                                    <th style="width:90px;text-align:right;">+{{ price_tax_auto|floatformat:'2' }}</th>
                                </tr>{% endif %}
                                <tr>
                                    <th align="left"></th>
                                    <th style="width:120px;">{% if LANGUAGE_CODE == 'en' %}Payment:{% else %}需支付:{% endif %}</th>
                                    <th style="width:90px;text-align:right;">{{ price_with_tax_auto|floatformat:'2' }}</th>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                         <div class="row" style="height:40px;"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                        {% trans '附属条款:' %}
                         <table class="notes">
                            <tbody>
                                <tr style="height:30px;">
                                    <th></th>
                                </tr>
                                <tr>
                                    <td>{% if order_info.order_notes %}
                                            {% if LANGUAGE_CODE == 'en' %}
                                                {{ order_info.order_notes.order_note_en|linebreaks }}
                                            {% else %}
                                                {{ order_info.order_notes.order_note_cn|linebreaks }}
                                            {% endif %}
                                        {% endif %}
                                        {% if order_info.show_app_notes and order_info.app_notes %}
                                            {{ order_info.app_notes|linebreaks }}
                                        {% endif %}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                         <div class="row" style="height:30px;"></div>
                    </td>
                </tr>
                <tr>
                    <td>
                         <table >
                            <tbody>
                                <tr>
                                    <td></td>
                                    <th style="width:80px;">{% trans '销售人员:' %}</th>
                                    <td style="width:150px;">{{ order_info.salesman.name }}</td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <th style="width:80px;">{% trans '联系电话:' %}</th>
                                    <td style="width:150px;">{{ order_info.salesman.mobile }}</td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <th style="width:80px;">{% trans 'E-mail:' %}</th>
                                    <td style="width:150px;">{{ order_info.salesman.email }}</td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                         <div class="row" style="height:40px;"></div>
                    </td>
                </tr>
                <tr>
                    <td>

                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>

